package com.weddingee.action.base;

import java.util.Map;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.struts2.interceptor.SessionAware;

import com.opensymphony.xwork2.ActionSupport;
import com.weddingee.model.User;
import com.weddingee.util.Constants;

public class BaseAction extends ActionSupport implements SessionAware {
	protected final transient Log log = LogFactory.getLog(getClass());
	protected Map<String,Object> session ;

	public void setSession(Map<String, Object> session) {
		this.session = session;
	}
	
	protected User getLoginUser(){
		return (User)session.get(Constants.SESSION_KEY_LOGIN_USER);
	}

}
